﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    namespace="ProEnt.LoanPrequalification.Model.LoanApplications"
        assembly="ProEnt.LoanPrequalification.Model">

	<class name="Debt" table="Debts" lazy="false">

		<id name="Id" column="DebtId" type="guid">
			<generator class="guid" />
		</id>

		<property name="Description">
			<column name="Description" sql-type="nvarchar(50)" not-null="true" />
		</property>

		<property name="CreditorName">
			<column name="CreditorName" sql-type="nvarchar(50)" not-null="true" />
		</property>

		<property name="BalanceOwed">
			<column name="BalanceOwed" sql-type="float" not-null="true" />
		</property>
		
		<property name="MonthlyPayment">
			<column name="MonthlyPayment" sql-type="float" not-null="true" />
		</property>

        <many-to-one name="LoanApplication"
                     class="LoanApplication"
                     column="LoanApplicationId"
                     not-null="true"
					  />

	</class>
</hibernate-mapping >